package com.ruoyi.docdraw.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目子项目协作对象 sys_sub_project
 * 
 * @author lvtian
 * @date 2025-04-14
 */
public class SysSubProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long subProjectId;

    /** 子项目所属项目 */
    @Excel(name = "子项目所属项目")
    private Long projectId;

    /** 子项目名称 同项目下唯一 */
    @Excel(name = "子项目名称 同项目下唯一")
    private String subProjectName;

    /** 子项目范围 */
    @Excel(name = "子项目范围")
    private String subProjectRange;

    /** 子项目说明 */
    @Excel(name = "子项目说明")
    private String subProjectDescribe;

    /** 子项目供应商id */
    @Excel(name = "子项目供应商id")
    private Long subProjectSupplierId;

    /** 子项目供应商项目经理用户id */
    @Excel(name = "子项目供应商项目经理用户id")
    private Long subProjectSupplierLeaderId;

    /** 项目开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subProjectStartTime;

    /** 项目结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "项目结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date subProjectEndTime;

    /** 备注 */
    @Excel(name = "备注")
    private String subProjectRemarks;

    /** 项目状态（0正常 1停用） */
    @Excel(name = "项目状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setSubProjectId(Long subProjectId) 
    {
        this.subProjectId = subProjectId;
    }

    public Long getSubProjectId() 
    {
        return subProjectId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setSubProjectName(String subProjectName) 
    {
        this.subProjectName = subProjectName;
    }

    public String getSubProjectName() 
    {
        return subProjectName;
    }
    public void setSubProjectRange(String subProjectRange) 
    {
        this.subProjectRange = subProjectRange;
    }

    public String getSubProjectRange() 
    {
        return subProjectRange;
    }
    public void setSubProjectDescribe(String subProjectDescribe) 
    {
        this.subProjectDescribe = subProjectDescribe;
    }

    public String getSubProjectDescribe() 
    {
        return subProjectDescribe;
    }
    public void setSubProjectSupplierId(Long subProjectSupplierId) 
    {
        this.subProjectSupplierId = subProjectSupplierId;
    }

    public Long getSubProjectSupplierId() 
    {
        return subProjectSupplierId;
    }
    public void setSubProjectSupplierLeaderId(Long subProjectSupplierLeaderId) 
    {
        this.subProjectSupplierLeaderId = subProjectSupplierLeaderId;
    }

    public Long getSubProjectSupplierLeaderId() 
    {
        return subProjectSupplierLeaderId;
    }
    public void setSubProjectStartTime(Date subProjectStartTime) 
    {
        this.subProjectStartTime = subProjectStartTime;
    }

    public Date getSubProjectStartTime() 
    {
        return subProjectStartTime;
    }
    public void setSubProjectEndTime(Date subProjectEndTime) 
    {
        this.subProjectEndTime = subProjectEndTime;
    }

    public Date getSubProjectEndTime() 
    {
        return subProjectEndTime;
    }
    public void setSubProjectRemarks(String subProjectRemarks) 
    {
        this.subProjectRemarks = subProjectRemarks;
    }

    public String getSubProjectRemarks() 
    {
        return subProjectRemarks;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subProjectId", getSubProjectId())
            .append("projectId", getProjectId())
            .append("subProjectName", getSubProjectName())
            .append("subProjectRange", getSubProjectRange())
            .append("subProjectDescribe", getSubProjectDescribe())
            .append("subProjectSupplierId", getSubProjectSupplierId())
            .append("subProjectSupplierLeaderId", getSubProjectSupplierLeaderId())
            .append("subProjectStartTime", getSubProjectStartTime())
            .append("subProjectEndTime", getSubProjectEndTime())
            .append("subProjectRemarks", getSubProjectRemarks())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
